﻿namespace Oddo.Concept.Crm.Common.Presentation.Commands
{
    using System.Windows;
    using System.Windows.Input;
    using Microsoft.Practices.Prism.Commands;

    public static class Commands
    {
        private static ICommand _exitCommand;
        /// <summary>
        /// Obtient l'instance de type ICommand utilisée pour mettre fin à l'application
        /// </summary>
        public static ICommand ExitCommand
        {
            get { return _exitCommand ?? (_exitCommand = new DelegateCommand(() => Application.Current.Shutdown(0))); }
        }
    }
}